309724e5d0c304523375d5f823d36804eb5dc2c6,gdx/src/com/badlogic/gdx/graphics/g2d/BitmapFontCache.java,BitmapFontCache,addToCache,#CharSequence#number#number#number#number#,404
Before Change
char ch = str.charAt(start++);
if (ch == '[' && font.markupEnabled) {
if (!(start < end && str.charAt(start) == '[')) { // non escaped '['
start += TextMarkup.parseColorTag(markup, str, charsCount, start, end) + 1;
color = markup.getLastColor().toFloatBits();
continue;
}
start++;
}
lastGlyph = data.getGlyph(ch);
if (lastGlyph != null) {
After Change
if (start < end && str.charAt(start) == '[') // escaped '['
start++;
else { // non escaped '['
int colorTagLen = markup.parseColorTag(str, charsCount, start, end);
if (colorTagLen >= 0) {
color = markup.getLastColor().toFloatBits();
start += colorTagLen + 1;
continue;